package bak.validation;

import horncomb.bpm.process.core.ExecutionContext;

/**
 * @author Daniel
 */
public class ValidatorUtils {

	/**
	 * @param submitValidator
	 * @param context
	 */
	public static ValidationResult invokeValidator(ExecutionValidator submitValidator,
			ExecutionContext context) {
		ValidationResult validationResult = new ValidationResult();
		submitValidator.validate(context, new ValidationResult());
		return validationResult;
	}

}
